package com.maolong.entity.format;

public class Code {
   //通用失败状态码
   public static final int FAIL = 300;
   public static final int ERROR = 500;

   //登录成功状态码
   public static final int SUCCESS_PERSON = 200;
   public static final int SUCCESS_MANGER = 201;
   public static final int SUCCESS_WORKER = 202;
   public static final int SUCCESS_USER = 203;


   //注册状态码
   public static final int REGISTERED= 400;
   public static final int UNREGISTERED= 401;
   public static final int REGISTER_SUCCESS = 402;

   //商品状态码
   public static final int ITEM_SELECT_OK = 500;
   public static final int ITEM_SELECT_FAIL = 501;
   public static final int ITEM_ADD_OK = 510;
   public static final int ITEM_ADD_FAIL = 511;
   public static final int ITEM_DELETE_OK = 520;
   public static final int ITEM_DELETE_FAIL = 521;
   public static final int ITEM_UPDATE_OK = 530;
   public static final int ITEM_UPDATE_FAIL = 531;
   public static final int USER_BUY_OK=540;
   public static final int USER_BUY_FAIL=541;

   //订单状态码
   public static final int ORDER_OK = 600;
   public static final int ORDER_FAIL = 601;

   //用户状态码
   public static final int USER_OK = 700;
   public static final int USER_FAIL = 701;

   //异常状态码
   public static final int EXCEPTION = 800;

}
